<template>
  <div>
    <x-table :cell-bordered="false" :content-bordered="false" style="background-color:#fff;">
      <thead>
      <tr style="background-color: #F7F7F7">
        <th>消息监听策略</th>
        <th>状态</th>
      </tr>
      </thead>
      <tbody>
      <tr v-for="(value,index) in strategyList">
        <td>{{value.strategyName}}</td>
        <td>{{value.status}}</td>
      </tr>
      </tbody>
    </x-table>
  </div>
</template>
<script>
  import { XTable, Group, Cell } from 'vux'

  export default {
    components: {
      XTable,
      Group,
      Cell
    },
    created: function () {
      this.$http.get('/wx/WxRobotController.do?getWxRobotMsgHandlerStrategy&uuid=' + localStorage.uuid)
        .then(function (res) {
          console.log(res.body.result)
          this.strategyList = res.body.result
        })
    },
    methods: {
    },
    data () {
      return {
        strategyList: []
      }
    }
  }
</script>

<style scoped>


</style>
